package java56_6.ch5;

public class Door {
	private String brand;
	private String color;
	private int price;

	public Door(String brand, String color, int price) {
		super();
		this.brand = brand;
		this.color = color;
		this.price = price;
	}

	public Door() {

	}

	public void open() {
		System.out.println("门开了");
	}

	public void close() {
		System.out.println("门关上了");
	}

	@Override
	public String toString() {
		return "门 [牌子=" + brand + ", 颜色=" + color + ", 价格=" + price + "]";
	}

}
